/**
 * \file error.h
 * \brief Error and warning reporting.
 **/

#ifndef R_ERROR_H
#define R_ERROR_H

/**
 * \brief Initialize the error-reporting system with the name of the binary,
 * call this before calling any other function from error.h
 **/
void r_err_init(char* name);

/**
 * \brief Print an error message (no need to put a \n at the end).
 **/
void r_error(char* fmt, ...);

/**
 * \brief Print a warning message (no need to put a \n at the end).
 **/
void r_warning(char* fmt, ...);

#endif /* R_ERROR_H */
